﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;

namespace SharpMap.Wpf
{
    public static class CommandProperties 
    {
        public static FrameworkElement GetTargetView(DependencyObject obj)
        {
            return (FrameworkElement)obj.GetValue(TargetViewProperty);
        }

        public static void SetTargetView(DependencyObject obj, FrameworkElement value)
        {
            obj.SetValue(TargetViewProperty, value);
        }

        public static readonly DependencyProperty TargetViewProperty =
            DependencyProperty.RegisterAttached("TargetView", typeof(FrameworkElement), typeof(CommandProperties), new UIPropertyMetadata(default(FrameworkElement)));

    }
}
